home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1019 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.0 KB

  1. Path: news1.h1.usa.pipeline.com!usenet
  2. From: grantp@usa.pipeline.com
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Help!! Visual C++ Linking
  5. Date: 8 Jan 1996 19:00:08 GMT
  6. Organization: Kalevi, Inc
  7. Message-ID: <4crpjo$nnr@news1.usa.pipeline.com>
  8. NNTP-Posting-Host: pipe4.h1.usa.pipeline.com
  9. X-PipeUser: grantp
  10. X-PipeHub: usa.pipeline.com
  11. X-PipeGCOS: (Pete)
  12. X-Newsreader: Pipeline USA v3.3.0
  13.  
  14. On Jan 08, 1996 16:12:04 in article <Help!! Visual C++ Linking>,
  15. 'cs_alaw@ug.cs.ust.hk (Law Look Tend)' wrote: 
  16.  
  17.  
  18. >I am using Visual C++ 2.0, and I try to compile a simple .cpp program,
  19. which 
  20. >I wrote in Visual C++ 1.0 and can compile and run perfectly.  But the 
  21. >following message appear when build .exe file: 
  22. >Incrementally linking... 
  23. >LINK : performing full link 
  24. >LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol "_main" 
  25.  
  26. Have you defined main?  If not, and it's a Console app, then 
  27. that's your problem.  
  28.  
  29. If it's supposed to be a Windows program, then it's probably that 
  30. you need tell the compiler so. 
  31. -- 
  32.  
  33. Pete 
  34.  
  35.  
  36.  
  37.  
  38.  
  39.